home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / examples / Makefile < prev    next >
Makefile  |  1991-09-26  |  822b  |  39 lines

  1. #
  2. # examples makefile 
  3. #
  4. CC = cc
  5.  
  6. CEXAMPS = trivial simple shapes poly views circtxt moretxt curves \
  7.       moretxt2 patches balls objvws world loc teapot cube lcube tetra \
  8.       sinewave
  9.  
  10. COBJS = moretxt2.o trivial.o simple.o shapes.o poly.o views.o circtxt.o moretxt.o \
  11.     curves.o patches.o balls.o objvws.o world.o loc.o \
  12.     teapot.o cube.o lcube.o tetra.o sinewave.o
  13.  
  14. #
  15. # Where to find librarys
  16. #
  17. OURLIBS = ../src/libvogl.a ../hershey/src/libhershey.a
  18. LIBS = -lX11 -lsuntool -lsunwindow -lpixrect -lm
  19. MCFLAGS = -g -fsingle /usr/lib/libm.il
  20. #
  21. # On a real SGI...
  22. #
  23. #OURLIBS = ../hershey/src/libhershey.a
  24. #LIBS = -lgl
  25. #MCFLAGS = -g -float
  26.  
  27. CFLAGS = -I../src $(MCFLAGS)
  28.  
  29. all:    $(CEXAMPS)
  30.  
  31. $(CEXAMPS): $(COBJS) $(OURLIBS)
  32.     $(CC) $(CFLAGS) -o $@ $@.o $(OURLIBS) $(LIBS)
  33.  
  34. clean:
  35.     rm -f *.o core
  36.  
  37. clobber:
  38.     rm -f $(CEXAMPS) *.o core
  39.